VERSION 5.00
Begin VB.Form frmCopiador 
   Caption         =   "COPIADOR"
   ClientHeight    =   330
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6120
   LinkTopic       =   "Form1"
   ScaleHeight     =   330
   ScaleWidth      =   6120
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command2 
      Caption         =   "CANCELAR"
      Height          =   255
      Left            =   3960
      TabIndex        =   2
      Top             =   0
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "ACEPTAR"
      Height          =   255
      Left            =   2760
      TabIndex        =   1
      Top             =   0
      Width           =   1215
   End
   Begin VB.DriveListBox Drive1 
      Height          =   315
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   2775
   End
End
Attribute VB_Name = "frmCopiador"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim fso As New FileSystemObject
    Dim t As DAO.Recordset
    Set t = Base.OpenRecordset("configuraciones")
    nombre = t("visor2") & Format(Date, "dd-mm-yyyy")
    letra = Mid(Drive1.Drive, 1, 2)
    On Error Resume Next
    fso.CreateFolder letra & "\" & nombre
    On Error GoTo 0
    ruta = letra & "\" & nombre & "\"
    fso.CopyFile "c:\dacli4\winda.ocx", ruta
    fso.CopyFile "c:\dacli4\dacli.mdb", ruta
    MsgBox "Copiado"
    End
End Sub

Private Sub Command2_Click()
    End
End Sub
